/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 87111
 * Date: 2025-10-25
 * Time: 15:10
 */
public class Demo1 {
    public static void main(String[] args) {
        //利用匿名内部类和Thread类创建新线程
        Thread t = new Thread() {
            @Override
            public void run() {
                System.out.println("hello,thread");
            }
        };
        t.start();
        System.out.println("hello main");
    }
}
